package com.zzxy.mybatis34.dao;

import com.zzxy.mybatis34.entity.User;
import org.apache.ibatis.session.SqlSession;

public class UserDaoImpl {
    private SqlSession sqlSession;

    public User UserDaoImpl(SqlSession sqlSession) {
        this.sqlSession = sqlSession;
        return null;
    }
        User findUserById(int id) {
            User user = sqlSession.selectOne("findUserById", id);
            return user;
        }
    }